package com.dabbo.starship.client.listeners;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.rmi.RemoteException;

import com.dabbo.starship.interfaces.WatchMouseClick;

public class MouseClickListener implements MouseListener, MouseMotionListener {
	
	private WatchMouseClick wind;
	
	public MouseClickListener(WatchMouseClick wind) {
		this.wind = wind;
	}

	@Override
	public void mouseClicked(MouseEvent arg0) {
		try {
			this.wind.mouseClickTrigger(arg0);
		} catch (RemoteException ex) {
			System.out.println("Remote Exception in mouseClicked event.");
		}
	}

	@Override
	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseDragged(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseMoved(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}
